#include<stdio.h>
#include<string.h>
#include<direct.h>
#include<io.h>
int _mkdir(const char *path);
int _access(const char *_Filename,int _AccessMode);
int main()
{
    char path[100];
    scanf("%s",path);
    if(_mkdir(path) == 0)
    {
        printf("Initialized empty Git repository in %s.git/\n",path);
        if (_access(path, 0) == 0) fprintf(stdout, "exist\n ");
        else fprintf(stdout, "not exist\n ");
        if (_access(path, 4) == 0) fprintf(stdout, "only has read premission\n ");
        else fprintf(stdout, "does not have read premission\n ");
        if (_access(path, 2) == 0) fprintf(stdout, "only has write premission\n ");
        else fprintf(stdout, "does not have write premission\n ");
        if (_access(path, 6) == 0) fprintf(stdout, "has both read and write premission\n");
        else fprintf(stdout, "has neither read nor write premission\n");
    }
    else printf("初始化空Git仓库失败\n");
    return 0;
}